#include "pch.h"
#include "global.hpp"

#include "config.hpp"

config config::invalid;

void config::check_valid() const
{
	if (!*this)
	{
		throw error("Mandatory WML child missing yet untested for. Please report.");
	}
}

config& config::child(const std::string& key, int n)
{
	check_valid();

	const child_map::const_iterator i = children.find(key);
	if (i == children.end())
	{

	}
}
